package net.sk.china.platform.service.city;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import net.sk.china.common.request.PageParamRequest;
import net.sk.china.common.model.city.City;
import net.sk.china.platform.request.city.CityAddRequest;
import net.sk.china.platform.request.city.CityRequest;
import net.sk.china.platform.request.city.CityRestPasswordRequest;
import net.sk.china.platform.request.city.CityUpdateRequest;
import net.sk.china.platform.response.city.CityResponse;


/**
 * CityService 接口
 * +----------------------------------------------------------------------
 * | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2018-2024 聊来All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * +----------------------------------------------------------------------
 * | @Author: 聊来 <18970881148@qq.com>
 * +----------------------------------------------------------------------
 * | DateTime: 2024/6/11 15:38
 * +----------------------------------------------------------------------
 */
public interface CityService extends IService<City> {

    /**
     * 列表
     * @param request 查询条件
     * @param page 分页
     * @return {@code PageInfo<CityResponse>}
     */
    PageInfo<CityResponse> getList(CityRequest request, PageParamRequest page);

    /**
     * 详情
     * @param id 数据ID
     * @return {@code City}
     */
    City getDetail(Integer id);

    /**
     * 开启、关闭
     * @param id 数据ID
     * @param status 状态 true:开启 false:关闭
     * @return {@code boolean}
     */
    boolean updateStatus(Integer id, Boolean status);

    /**
     * 重置密码
     * @param request 请求参数
     * @return {@code boolean}
     */
    boolean restPassword(CityRestPasswordRequest request);

    /**
     * 添加分站管理员
     * @param request 请求参数
     * @return {@code boolean}
     */
    boolean add(CityAddRequest request);

    /**
     * 更新分站管理员
     * @param request 请求参数
     * @return {@code boolean}
     */
    boolean update(CityUpdateRequest request);
}
